Optimal. Leaf size=44 \[ \frac {\log \left (A+B \log \left (e (a+b x)^n (c+d x)^{-n}\right )\right )}{B (b c-a d) f n} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.17, antiderivative size = 44, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 50, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.100, Rules used = {2573, 2574,
2561, 2339, 29} \begin {gather*} \frac {\log \left (B \log \left (e (a+b x)^n (c+d x)^{-n}\right )+A\right )}{B f n (b c-a d)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 29
Rule 2339
Rule 2561
Rule 2573
Rule 2574
Rubi steps
\begin {align*} \int \frac {1}{\left (a c f+(b c+a d) f x+b d f x^2\right ) \left (A+B \log \left (e (a+b x)^n (c+d x)^{-n}\right )\right )} \, dx &=\frac {\log \left (A+B \log \left (e (a+b x)^n (c+d x)^{-n}\right )\right )}{B (b c-a d) f n}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 42, normalized size = 0.95 \begin {gather*} \frac {\log \left (A+B \log \left (e (a+b x)^n (c+d x)^{-n}\right )\right )}{f (b B c n-a B d n)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
3.
time = 0.71, size = 371, normalized size = 8.43
method | result | size |
risch | \(-\frac {\ln \left (\ln \left (\left (d x +c \right )^{n}\right )-\frac {-i B \pi \,\mathrm {csgn}\left (i e \right ) \mathrm {csgn}\left (i \left (b x +a \right )^{n} \left (d x +c \right )^{-n}\right ) \mathrm {csgn}\left (i e \left (d x +c \right )^{-n} \left (b x +a \right )^{n}\right )+i B \pi \,\mathrm {csgn}\left (i e \right ) \mathrm {csgn}\left (i e \left (d x +c \right )^{-n} \left (b x +a \right )^{n}\right )^{2}-i B \pi \,\mathrm {csgn}\left (i \left (b x +a \right )^{n}\right ) \mathrm {csgn}\left (i \left (d x +c \right )^{-n}\right ) \mathrm {csgn}\left (i \left (b x +a \right )^{n} \left (d x +c \right )^{-n}\right )+i B \pi \,\mathrm {csgn}\left (i \left (b x +a \right )^{n}\right ) \mathrm {csgn}\left (i \left (b x +a \right )^{n} \left (d x +c \right )^{-n}\right )^{2}+i B \pi \,\mathrm {csgn}\left (i \left (d x +c \right )^{-n}\right ) \mathrm {csgn}\left (i \left (b x +a \right )^{n} \left (d x +c \right )^{-n}\right )^{2}-i B \pi \mathrm {csgn}\left (i \left (b x +a \right )^{n} \left (d x +c \right )^{-n}\right )^{3}+i B \pi \,\mathrm {csgn}\left (i \left (b x +a \right )^{n} \left (d x +c \right )^{-n}\right ) \mathrm {csgn}\left (i e \left (d x +c \right )^{-n} \left (b x +a \right )^{n}\right )^{2}-i B \pi \mathrm {csgn}\left (i e \left (d x +c \right )^{-n} \left (b x +a \right )^{n}\right )^{3}+2 B \ln \left (e \right )+2 B \ln \left (\left (b x +a \right )^{n}\right )+2 A}{2 B}\right )}{B f n \left (a d -c b \right )}\) | \(371\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.40, size = 48, normalized size = 1.09 \begin {gather*} \frac {\log \left (-\frac {B \log \left ({\left (b x + a\right )}^{n}\right ) - B \log \left ({\left (d x + c\right )}^{n}\right ) + A + B}{B}\right )}{{\left (b c f n - a d f n\right )} B} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.35, size = 46, normalized size = 1.05 \begin {gather*} \frac {\log \left (-B n \log \left (b x + a\right ) + B n \log \left (d x + c\right ) - A - B\right )}{{\left (B b c - B a d\right )} f n} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 4.20, size = 40, normalized size = 0.91 \begin {gather*} \frac {\log \left (B n \log \left (b x + a\right ) - B n \log \left (d x + c\right ) + A + B\right )}{B b c f n - B a d f n} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 4.51, size = 42, normalized size = 0.95 \begin {gather*} -\frac {\ln \left (A+B\,\ln \left (\frac {e\,{\left (a+b\,x\right )}^n}{{\left (c+d\,x\right )}^n}\right )\right )}{B\,a\,d\,f\,n-B\,b\,c\,f\,n} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________